package com.me.bbs.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.bytebuddy.asm.Advice;

/**
 * <p>
 * 
 * </p>
 *
 * @author lm
 * @since 2023-01-09
 */
@ApiModel(value = "Post对象", description = "")
@Data
public class Post implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Long postId;

    private String title;

    private String content;

    private Long author;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    private Long forum;

    private Integer viewCount;

    private Integer commentCount;
    private String  htmlContent;

    private Integer likeCount;

    private Integer collectCount;

    private String brief;

    private LocalDateTime lastReplyAt;
    @Override
    public String toString() {
        return "Post{" +
            "postId = " + postId +
            ", title = " + title +
            ", content = " + content +
            ", author = " + author +
            ", createTime = " + createTime +
            ", updateTime = " + updateTime +
            ", forum = " + forum +
            ", viewCount = " + viewCount +
            ", commentCount = " + commentCount +
            ", likeCount = " + likeCount +
        "}";
    }
}
